import { ref, computed, type Ref } from 'vue'
import { defineStore } from 'pinia'

// 收藏 持久化
// interface isData {
//   list:any
// }
export const collectionStore = defineStore('collection', () => {

  const collist:Ref<any> = ref([])



  function changecollfn(data:any) {
   
    collist.value = data
    console.log('store',collist.value);
    
  }

  return { collist, changecollfn }
})
